using System.Collections.Generic;
using System.Linq;
using IDAL;
using Models;

namespace DAL
{
    public class PurchasedChannelService : IPurchasedChannelService
    {
        private ITAMContext dbContext = null;
        public PurchasedChannelService(ITAMContext context)
        {
            this.dbContext = context;
        }

        public List<PurchasedChannel> GetPurchasedChannels()
        {
            var result = (from p in dbContext.PurchasedChannels select p).ToList();
            return result;
        }
    }
}